package pers.chy.util;

import java.io.UnsupportedEncodingException;

public class Message {
	
	private String type;
	private byte[] contents;
	public Message(String type) {
		try {
			this.type=type;
			this.contents="none".getBytes("UTF-8"); 
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}
	}
	public Message(String type,byte[] contents) {
		this.type=type;
		this.contents=contents;
	}
	public Message() {
		
	}
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public byte[] getContents() {
		return contents;
	}

	public void setContents(byte[] contents) {
		this.contents = contents;
	}
	
	
}
